// 临时数据存储，主要是减少重复的耗时请求


import { defineStore } from 'pinia';
import { ref } from 'vue';


export default defineStore('temp', () => {
    const examResult = ref(null)
    const randomQuestion=ref(null)
    function setExamResult(obj){
        examResult.value=obj
    }
    function setRandomQuestion(obj){
        randomQuestion.value=obj
    }
    return{
        randomQuestion,
        examResult,
        setExamResult,
        setRandomQuestion
    }
})